package com.example.product.pjo;

import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Data
public class Person {
    String name;
    Integer age;

    public Person() {
        System.out.println("Person0");
    }

    public Person(Integer age, String name) {
        this.age = age;
        this.name = name;
        System.out.println("Person1");
    }
}
